package com.beg.cant.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("withdraw")
@Schema(description = "提现记录实体")
@NoArgsConstructor
public class WithdrawVO {
    @TableId(type = IdType.AUTO)
    @Schema(description = "提现记录ID", example = "1")
    private Long id;

    @Schema(description = "用户ID", example = "1", required = true)
    private Long userId;

    @Schema(description = "申请金额（两位小数）", example = "200.00", required = true)
    private Double amount;

    @Schema(description = "转账订单号")
    private String outBillNo;

    @Schema(description = "状态：0-待审核 1-处理中 2-成功 3-失败", example = "0")
    private Integer status;

    @Schema(description = "用户openid")
    private String openid;

    @Schema(description = "创建时间")
    @TableField("create_at")
    private LocalDateTime createAt;

}